// main.js
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/login', component: () => import('@/views/LoginView.vue') },
    { path: '/register', component: () => import('@/views/RegisterView.vue') },
    { path: '/', component: () => import('@/views/HomePage.vue') } ,// 补充主页路由规则
    {path:'/OrderManagement', component:()=>import('@/views/OrderManagement.vue')}
  ]
})

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
